package com.zhss.eshop.finance.dao.impl;

import com.zhss.eshop.finance.domain.FinancePurchaseSettlementOrderDO;
import com.zhss.eshop.finance.mapper.FinancePurchaseSettlementOrderMapper;
import com.zhss.eshop.finance.dao.FinancePurchaseSettlementOrderDAO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import com.zhss.eshop.common.util.ObjectUtils;

/**
 * TODO
 *
 * @since 2021-05-27 23:50:33
 */
@Service
public class FinancePurchaseSettlementOrderDAOImpl implements FinancePurchaseSettlementOrderDAO {
   
   @Resource
    private FinancePurchaseSettlementOrderMapper financePurchaseSettlementOrderMapper;

    @Override
    public FinancePurchaseSettlementOrderDO queryById(Long id) {
        return financePurchaseSettlementOrderMapper.queryById(id);
    }

    @Override
    public List<FinancePurchaseSettlementOrderDO> queryAllByLimit(int offset, int limit) {
        return financePurchaseSettlementOrderMapper.queryAllByLimit(offset, limit);
    }

    @Override
    public Boolean save(FinancePurchaseSettlementOrderDO financePurchaseSettlementOrderDO) {
        financePurchaseSettlementOrderMapper.save(financePurchaseSettlementOrderDO);
        return true;
    }

    @Override
    public Boolean update(FinancePurchaseSettlementOrderDO financePurchaseSettlementOrderDO) {
        financePurchaseSettlementOrderMapper.update(financePurchaseSettlementOrderDO);
        return true;
    }

    @Override
    public Boolean deleteById(Long id) {
        financePurchaseSettlementOrderMapper.deleteById(id);
		return true;
    }
}